/************************************************************************************************************************************************************
*                          DESENVOLVEDORES: Paulo Costa; Diogo Oliveira; Iara Fernanda; Mariana Souza
*                          ORIENTADOR e CO-DESENVOLVEDOR: Prof.Dr. Eraldo Pereira Marinho
*
*                                                           ARQUIVO: pseudocode.c
*
************************************************************************************************************************************************************/

#include <stdio.h>
#include <string.h>

char lexeme[256];
FILE *tape;

/*
 * ExpNotation = 'E'(+|-)? digit+
 */
int
isExpNotation(int i){
  ++i;    /* E notation format check */
  if(lexeme[i] == '+' || lexeme[i] == '-'){
    lexeme[i] = getc(tape);
  }
  if(isdigit(lexeme[i] = getc(tape))){
    while(isdigit(lexeme[++i] = getc(tape)));
     ungetc(lexeme[i], tape);
  }
  else{
    ungetc(lexeme[i], tape);
    fprintf(stderr, "\nIlegal exponential notation\n");
    return -2;
  }       /* If the E notation was correct the flow continue here */
}
